import {useState} from 'react';
function useInput(){
    let [value,setValue] = useState();
    let onChange = (e:any)=>{
        setValue(e.target.value);
    }
    return {
        value,
        onChange
    }
}

export default useInput; 